package text;

import Impl.MasterDaoMySQLImpl;
import entitys.stuentWork;

public class ZhuCeText {
	public static void main(String[] args) {
		ZhuCeText zhuce = new ZhuCeText();
		int num = zhuce.outs("zhangsan","111111");
		System.out.println(num);
	}

	public int outs(String sname ,String pass) {
		MasterDaoMySQLImpl workDao = new MasterDaoMySQLImpl();
		stuentWork subjectWork = new stuentWork();
		subjectWork.setSname(sname);
		subjectWork.setPass(pass);
		int num = workDao.update(subjectWork);
		return num;
	}
}
